﻿namespace System.Xml.Serialization.Internal
{
    internal class XmlObjectSerializer<T> : IXmlObjectSerializer<T>
    {
        private IXmlObjectSerializer _serializer;

        public XmlObjectSerializer(XmlObjectSerializer serializer)
        {
            _serializer = serializer;
        }

        #region IXmlObjectSerializer<T> Members

        public void Serialize(object value)
        {
            _serializer.Serialize(typeof(T), value);
        }

        public void Deserialize(object value)
        {
            _serializer.Deserialize(typeof(T), value);
        }

        #endregion
    }
}
